
set(CMAKE_SYSTEM_NAME Generic)
set(CMAKE_SYSTEM_PROCESSOR arm)

set(TOOLS "/home/etcfly/Tools/arm-gnu-toolchain-14.3.rel1-x86_64-arm-none-eabi/bin")
set(CMAKE_C_COMPILER "${TOOLS}/arm-none-eabi-gcc")
set(CMAKE_CXX_COMPILER "${TOOLS}/arm-none-eabi-g++")
set(CMAKE_AR "${TOOLS}/arm-none-eabi-ar")
set(CMAKE_ASM_COMPILER "${TOOLS}/arm-none-eabi-gcc")
set(CMAKE_OBJCOPY "${TOOLS}/arm-none-eabi-objcopy")
set(CMAKE_OBJDUMP "${TOOLS}/arm-none-eabi-objdump")
set(CMAKE_SIZE "${TOOLS}/arm-none-eabi-size")
# 设置链接器
set(CMAKE_LINKER "${TOOLS}/arm-none-eabi-ld")

#跳过编译器测试
set(CMAKE_TRY_COMPILE_TARGET_TYPE STATIC_LIBRARY)
